package ar.uba.dc.cmovil.tripplanner.domain;

import java.io.Serializable;

/**
 * Created by gbarbuto on 9/24/13.
 */
public class Coordinate implements Serializable {

	private Double value;

	public Coordinate(Double value) {
		if (value == null) {
			throw new IllegalArgumentException("value cannot be null");
		}

		this.value = value;
	}

	public Double getValue() {
		return this.value;
	}

	@Override
	public String toString() {
		return this.value.toString();
	}
}
